package com.globallogic.vkulyk.SSHTool;

public class ScriptExecutionDataKeeper extends ActionDataKeeper {

	private String script = "";

	public ScriptExecutionDataKeeper(String typt, String user, String password, String script) {
		super(typt, user, password);
		this.script = script;
	}

	public String getScript() {
		return script;
	}
	
	@Override
	public int hashCode() {
		return super.hashCode() + script.hashCode();
	}

	@Override
	public boolean equals(Object thatObj) {
		if (this == thatObj) return true;
		return thatObj instanceof ScriptExecutionDataKeeper
				&& super.equals(thatObj)
				&& script.equals(((ScriptExecutionDataKeeper) thatObj).getScript());
	}
	
	@Override
	public String toString() {
		return  super.toString() + " " + script;
	}

}
